const { switchVersion } = require("./utils")

const version = process.argv[2]

const vueEntry = process.argv[3] || "vue"

if (!["2.7", "2", "3"].includes(version)) {
    console.warn(`unknow version ${version}`)
    process.exit(1)
}

switchVersion(version, vueEntry)

console.log(`hello sube, current is ${version}, entry is ${vueEntry}`)
